#include "capinterface.h"
#include "application.h"

#define MYCAP_STRING_LEN	1024

struct MyCapRequest{
	char val1[MYCAP_STRING_LEN];

};
struct MyCapConnection{
	MyCapRequest request;
	short requeston;
	char val1[MYCAP_STRING_LEN];
};

struct MyCapUrlList{
	int count;
	char** entries;
};



class MyCAP: public CAPInterface{
private:

	MyCapUrlList blacksites;
	MyCapUrlList whitesites;
public:
	CAP_RETURN ConnectCAP(void**, HeaderHandlerInterface* );
	CAP_RETURN RequestCAP(void**, char**, unsigned int *, HeaderHandlerInterface* );
	CAP_RETURN ResultCAP(void**, char**, unsigned int*, HeaderHandlerInterface*);
	void CloseCAP(void**);
	CAP_RETURN	InitCAP();
	CAP_RETURN	ClearCAP();
};
